home *** CD-ROM | disk | FTP | other *** search
- Path: r-l1-staff-15.scu.edu.au!user
- From: skershaw@scu.edu.au (Shane Kershaw)
- Newsgroups: comp.sys.mac.programmer,comp.sys.mac.programmer.help,comp.sys.mac.programmer.codewarrior,comp.lang.c,comp.lang.pascal.mac
- Subject: Re: Pascal or C++?
- Date: Sat, 13 Jan 1996 11:39:32 +1100
- Organization: Virtual Studios, Faculty of Arts, Southern Cross University
- Distribution: world
- Message-ID: <skershaw-1301961139320001@r-l1-staff-15.scu.edu.au>
- References: <d7e_9512231058@linknet.ccinet.ab.ca> <dallas-3012950728570001@ppp31.atlantica.net> <daniel-3112950846190001@ts3209.slip.colostate.edu> <surgsw-0401962040100001@128.206.206.68> <4cqcnj$387@pegasus.interpac.net>
- NNTP-Posting-Host: r-l1-staff-15.scu.edu.au
-
- In article <4cqcnj$387@pegasus.interpac.net>, stacys@isis.interpac.net
- (Stacy Sherman) wrote:
- >C should never be used as a first programming language, especially at
- >high school level. I got my CS degree in '91 and they were teaching most
- >of the courses in Pascal and were just starting to use C. Even now, the
- >first few courses are still taught in Pascal.
- I agree with you here Stacy (where did you do your degree?). Our Uni has
- just changed all of its coding courses and removed Pascal from the
- curriculum entirely. Tis worriesme, especially as they included Visual
- Basic as an example of RAD environemnt (not, I would have thought:-).
- > You want to teach them HOW to program. Not how to program in C. It's
- > really easy to screw up & get frustrated in C. Plus, C relies heavily on
- > pointers which are a difficult concept for many people.
- Again I agree. I stil lthe think that best approach that can be applied
- here is to use the good old pencil and paper compiler for the first
- semester course - don't let them near a machine until they can express
- their intentions algorithmically, this will ultimately lead to better code
- and results for the students, because they won;t be fighting the
- have-I-got-the-right-algorithm battle whilst trying to learn the syntax
- and smemantics of whatever language they are using. One of the best
- things I liked about my degree was that I was able to do a comparative
- study of languages in the same semester I had to do the cobol unit - C,
- Pascal, Modula2, Cobol and hypertalk (v1.2.5). In some cases what was
- required in the cobol unit algorithmically was also required in the comp
- lang unit, so I was abler to see that the algorithm didn't change, but the
- implementation of the algorithm might, i.e. two lines of code in c, maybe
- 3 in pascal (no ternary if statement) and 6 lines in cobol. It was an eye
- opener and has made me an advocate of algorithm first, implementation
- second approach to coding.
- > CodeWarrior academic might be a good choice, or the codewarrior starter
- > kit. They have both C and Pascal built in. Just because it can't
- > generate PPC code doesn't mean it can't be used on the PowerMac. You can
- > run the compiler on the PowerMac and any programs you create with them.
- > The programs won't be native, that's all.
- Uum, I wansn't aware that this was the case - I use CW academic and don't
- have any problem generating PPC only code. The only limitation of CW
- academic is that you can't sell your programs - no more, no less.
-
- Shane
- --
- Shane Kershaw
- Co-moderator of sci.psychology.research
- Systems Administration, Virtual Studios
- Southern Cross University, NSW Australia
-